﻿<UserControl x:Class="P2.Cuberry.Modules.Framework.LocalCuberryReport.LocalCuberryReportsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:P2.Cuberry.Modules.Framework.LocalCuberryReport.BusinessEntities">

    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="Report">
                <StackPanel>
                    <TextBlock Height="30" Margin="2"  Text="{Binding Path=Name}" FontSize="14" FontFamily="Arial" />
                    <TextBlock Height="30" Margin="2" Text="{Binding Path=Description}" FontSize="10" FontFamily="Arial" />
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        
        <ListBox x:Name="ReportList" ItemTemplate="{Binding Source={StaticResource Report}}"  Margin="0,0,0,0"  SelectionChanged="ReportList_SelectionChanged" HorizontalContentAlignment="Stretch">

        </ListBox>
    </Grid  >
</UserControl>
